package com.mlan.userap.model;

public class ChatEntry {
    private int avatarResId; // 头像资源ID
    private String nickname; // 昵称
    private String lastMessage; // 最近消息
    private String date; // 消息日期
    private int unreadCount; // 未读消息数量
    private boolean isDnd; // 是否免打扰

    public ChatEntry(int avatarResId, String nickname, String lastMessage, String date, int unreadCount, boolean isDnd) {
        this.avatarResId = avatarResId;
        this.nickname = nickname;
        this.lastMessage = lastMessage;
        this.date = date;
        this.unreadCount = unreadCount;
        this.isDnd = isDnd;
    }

    public int getAvatarResId() {
        return avatarResId;
    }

    public String getNickname() {
        return nickname;
    }

    public String getLastMessage() {
        return lastMessage;
    }

    public String getDate() {
        return date;
    }

    public int getUnreadCount() {
        return unreadCount;
    }

    public void setUnreadCount(int unreadCount) {
        this.unreadCount = unreadCount;
    }

    public boolean isDnd() {
        return isDnd;
    }
}